package com.spzx.service;

import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.spzx.cart.api.domain.CartInfo;

import java.util.List;

/**
 * ClassName: ICartService
 * Package: com.spzx.service
 * Description:
 */
public interface ICartService {
    void addToCart(Long skuId, Integer skuNum);


    List<CartInfo> getCartList(Long userId);

    Integer deleteCart(List<Long> skuId,Long userId);

    int changeChecked(Long skuId, Integer isChecked, Long userId);

    int allCheckCart(Integer isChecked, Long userId);

    Boolean clearCart(Long userId);

    void updateCartPrice(Long userId);

    List<CartInfo> getCheckList(Long userId);
}
